<?php
/**
 * Created by PhpStorm.
 * User: Test
 * Date: 2017/5/17
 * Time: 15:16
 */
use yii\helpers\Html;
?>
<div class="post">
    <div class="title">
        <h2><a href="<?=$model->url;?>"><?=Html::encode($model->title);?></a></h2>
        <div class="author">
            <span class="glyphicon glyphicon-time" aria-hidden="true"></span>  <?=date('Y-m-d h:i:s',$model->create_time);?>&nbsp;&nbsp;&nbsp;
            <span class="glyphicon glyphicon-user" aria-hidden="true"></span>  <?=Html::encode($model->author->nickname);?>
            </div>
        <div class="content">
            <?=$model->beginning;?>
            </div>
        <br>
        <div class="nav">
            <span class="glyphicon glyphicon-tag" aria-hidden="true"></span>
            <?=implode(',',$model->taglinks);?>
            <br>

            <?= Html::a("评论({$model->commentCount})",$model->url.'#comments')?>| 最后修改于:<?=date('Y-m-d h:i:s',$model->update_time)?>
            </div>




        </div>
    </div>

